package mao.thinkinjava.collection;

import java.util.AbstractList;

public class CountingIntegerList extends AbstractList<Integer> {
    int size = 10;
    @Override
    public Integer get(int index) {
        return Integer.valueOf(index);
    }

    @Override
    public int size() {
        return size;
    }

    public static void main(String[] args) {
        CountingIntegerList integers = new CountingIntegerList();
        System.out.println(integers);
    }
}
